//
//  AddAccountBookViewController.m
//  TrueLove
//
//  Created by han on 15-1-29.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "AddAccountBookViewController.h"

@interface AddAccountBookViewController ()

@end

@implementation AddAccountBookViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithRed:244/255 green:244/255 blue:242/255 alpha:0.1];
    
    [self upView];
    [self middleView];
    [self downView];
}
- (void)upView
{
    UIView *nameView = [[[UIView alloc] initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 40)] autorelease];
    nameView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:nameView];
    
    UILabel *nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 0, 40, 40)];
    nameLabel.text = @"姓名";
    [nameView addSubview:nameLabel];
    [nameLabel release];
    
    UITextField *nameTextField = [[UITextField alloc] initWithFrame:CGRectMake(120, 0, 200, 40)];
    nameTextField.placeholder = @"请输入姓名 必填";
   // nameTextField.borderStyle = UITextBorderStyleRoundedRect;
    [nameView addSubview:nameTextField];
    [nameTextField release];
}
- (void)middleView
{
    UIView *moneyView = [[[UIView alloc] initWithFrame:CGRectMake(0, 190, self.view.frame.size.width, 40)] autorelease];
    moneyView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:moneyView];
    
    UILabel *moneyLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 0, 40, 40)];
    moneyLabel.text = @"金额";
    [moneyView addSubview:moneyLabel];
    [moneyLabel release];
    
    UITextField *moneyTextField = [[UITextField alloc] initWithFrame:CGRectMake(120, 0, 200, 40)];
    moneyTextField.placeholder = @"请输入金额 必填";
    [moneyView addSubview:moneyTextField];
    [moneyTextField release];
}
- (void)downView
{
    UIView *remarkView = [[[UIView alloc] initWithFrame:CGRectMake(0, 280, self.view.frame.size.width, 200)] autorelease];
    remarkView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:remarkView];
    
    UILabel *remarkLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 50, 20)];
    remarkLabel.text = @"备注:";
    [remarkView addSubview:remarkLabel];
    [remarkLabel release];
    
    
    UITextField *remarkTextField = [[UITextField alloc] initWithFrame:CGRectMake(10, 30, self.view.bounds.size.width, 150)];
    remarkTextField.placeholder = @"备注可以为空";
    
    [remarkView addSubview:remarkTextField];
    [remarkTextField release];
}
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    [self.view endEditing:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
